<% unless params[:all] == 'all' -%>

<ul id="<%= params[:id] %>" title="<%= trim(expand(params[:id])) %>">
	<li><a href="music/artist/<%= params[:id] %>/all">All Songs</a></li>
	<% @albums.each do |album| -%>
	<li><a href="music/album/<%= compress(album) %>/<%= params[:id] %>"><%= album %></a></li>
	<% end -%>
</ul>

<% else -%>

<ul id="<%= params[:id] %>" title="<%= trim(expand(params[:id])) %>">
	<% @songs.each do |song| -%>
	<li><a href="music/song/<%= song.id %>/"><%= song.title %></a></li>
	<% end -%>
</ul>

<% end -%>